package com.qf.boot220301.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@RestController
public class DateController {
    @GetMapping("/date")
    public Map<String,Object> getDate(){
        final Date date = new Date();
        final HashMap<String, Object> map = new HashMap<>();
        map.put("date",date);
        return map;
    }
}
